home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / ausay / Makefile < prev    next >
Encoding:
Makefile  |  1995-05-03  |  943 b   |  42 lines

  1. #
  2. #    Makefile for ausay - when the netaudio stuff is properly sorted out,
  3. #    we'll put an Imakefile together.
  4. #
  5. LIBDIR = /usr/skunk/lib
  6. INCDIR = /usr/include
  7. PHONEMEDIR = /usr/skunk/lib/phonemes
  8. BINDIR = /usr/skunk/bin
  9.  
  10. CFLAGS= -O -I$(INCDIR) -DLIBSPEAK -DDEFAULT_DIR=\"$(PHONEMEDIR)\"
  11. LIBS= -L. -L$(LIBDIR) -lspeak -laudio -lX11 -lsocket -lm
  12.  
  13. CCOBJECTS=english.o parse.o phoneme.o saynum.o spellword.o speak.o
  14.  
  15.  
  16. ausay: libspeak.a ausay.o
  17.     $(CC) $(CFLAGS) -o ausay ausay.o $(LIBS)
  18.  
  19. test: libspeak.a test.o
  20.     $(CC) $(CFLAGS) -o test test.o $(LIBS)
  21.  
  22. libspeak.a: $(CCOBJECTS)
  23.     ar ruv libspeak.a $(CCOBJECTS)
  24.     ranlib libspeak.a
  25.  
  26. phoneme: $(CCOBJECTS)
  27.     $(CC) -o phoneme $(CCOBJECTS)
  28.  
  29. clean:
  30.     rm -f *.o test ausay libspeak.a
  31.  
  32. install: ausay libspeak.a
  33.     if [ ! -d $(PHONEMEDIR) ] ; \
  34.     then  \
  35.         mkdir -p $(PHONEMEDIR)  ; \
  36.     fi
  37.     cp phonemes/* $(PHONEMEDIR)
  38.     chmod 644 $(PHONEMEDIR)/*
  39.     chmod 555 $(PHONEMEDIR)
  40.     cp ausay $(BINDIR)
  41.     cp libspeak.a $(LIBDIR)
  42.